<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>发布新图书</title>
    <script src="/ueditor/ueditor.config.js"></script>
    <script src="/ueditor/ueditor.all.js"></script>
    <script src="/ueditor/lang/zh-cn/zh-cn.js"></script>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/static/font-awesome-4.7.0/css/font-awesome.css">
</head>
<body>

<div class="container">
    <form action="/admin/book?action=save" method="post" enctype="multipart/form-data">
    <h3>发布新图书</h3>
    类别：<select name="cateid">
            <#list cs as c>
                <option value="${c.id}">
                    <#list c.cpath?split(",") as x>
                        &nbsp;
                    </#list>
                    ${c.cname}</option>
            </#list>
        </select>
        <br>
        <br>
        图片：<input type="file" name="imgs" multiple>
        <br>
    书名：<input type="text" name="name"><br>
        简介：<script id="intro" name="intro" type="text/plain"></script>
        <script>
            let intro = UE.getEditor("intro",{emotionLocalization:false,
                elementPathEnabled:false,
                wordCount:false,
                toolbars:[['undo','redo','|', "bold"]]});
        </script>

    作者：<input type="text" name="author"><br>
    库存：<input type="text" name="num"><br>
    原价：<input type="text" name="price"><br>
    现价：<input type="text" name="nprice"><br>

        详细：<script id="container" name="content" type="text/plain"></script>
        <script>
            let ue = UE.getEditor("container");
        </script>


        <input type="submit" value="发布">
    </form>
</div>



<script src="/static/jquery/jquery.js"></script>
<script src="/static/bootstrap/js/bootstrap.bundle.js"></script>
<script src="/static/bootstrap/js/bootstrap.js"></script>

</body>
</html>